﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DCT.CodeBox.BMS.Code.DataModels
{
    public class UserFullDataModel : BaseDataModel
    {
        public UserDataModel UserData { get; private set; }

        public UserInfoDataModel UserInfo { get; private set; }

        public UserFullDataModel(string userName)
        {
            this.UserData = new UserDataModel() { UserName = userName };
            this.UserInfo = new UserInfoDataModel() { UserName = userName };
        }

        public string UserName 
        {
            get {
                return this.UserData.UserName;
            }
        }        

        public override string GetIdentifier()
        {
            return this.UserName;
        }
    }
}
